package config

import "github.com/spf13/viper"

type RoutConfig struct {
	Log, Cor   bool
	Addr, Port string
}

func NewRoutConfig(a struct{ Log, Cor bool }) *RoutConfig {
	return &RoutConfig{
		Log:  a.Log,
		Cor:  a.Cor,
		Addr: viper.GetString("server.addr"),
		Port: viper.GetString("server.port"),
	}
}
